package io.renren.modules.test.library.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import java.util.Date;
/**
 * @author liyinuo
 * 测试库
 */
@TableName(value = "bm_test_library")
@Data
@ApiModel(value = "Library对象", description = "")
public class Library {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "测试库id")
    private Long libraryId;

    @NotBlank(message = "测试库名不可为空")
    @ApiModelProperty(value = "测试库名称")
    private String libraryName;

    @NotBlank(message = "产品id不可为空")
    @ApiModelProperty(value = "测试库对应的产品id")
    private Long productId;

    @ApiModelProperty(value = "测试库对应的产品名")
    @TableField(exist = false)
    private String productName;

    @ApiModelProperty(value = "测试库标识")
    private String librarySign;

    @ApiModelProperty(value = "测试库描述")
    private String libraryDesc;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "最后修改时间")
    private Date lastEditTime;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "最后修改人")
    private Long lastEditUser;

    @TableLogic
    @ApiModelProperty(value = "逻辑删除")
    private int delStatus;
}
